tb_file=test.sv
tb_obj=tb
v_ver=-g2005-sv
#-------------------------------------------------------------------------------------------------------
all: \
	iverilog \
	gtk \

#-------------------------------------------------------------------------------------------------------
iverilog:
	iverilog $(v_ver) -o $(tb_obj) -y ../module/ ../tb/$(tb_file)
	vvp -n $(tb_obj) -lxt2
#-------------------------------------------------------------------------------------------------------
gtk:
	gtkwave $(tb_obj).lxt
#-------------------------------------------------------------------------------------------------------
clean  :
	 rm  -rf  $(tb_obj) *.lxt
#-------------------------------------------------------------------------------------------------------
